Filter hook 'get_object_subtype_{$object_type}'

in WP Core File wp-includes/meta.php at line 1819

Description

Filters the object subtype identifier for a non-standard object type. The dynamic portion of the hook name, `$object_type`, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table). Possible hook names include: - `get_object_subtype_post` - `get_object_subtype_comment` - `get_object_subtype_term` - `get_object_subtype_user`

Occurrences

Filename Line Number
wp-includes/meta.php 1819

Parameters

Type Name Description
string $object_subtype Empty string to override.
int $object_id ID of the object to get the subtype for.

PHP Doc

/**
	 * Filters the object subtype identifier for a non-standard object type.
	 *
	 * The dynamic portion of the hook name, `$object_type`, refers to the meta object type
	 * (post, comment, term, user, or any other type with an associated meta table).
	 *
	 * Possible hook names include:
	 *
	 *  - `get_object_subtype_post`
	 *  - `get_object_subtype_comment`
	 *  - `get_object_subtype_term`
	 *  - `get_object_subtype_user`
	 *
	 * @since 4.9.8
	 *
	 * @param string $object_subtype Empty string to override.
	 * @param int    $object_id      ID of the object to get the subtype for.
	 */